import * as moment from 'moment';
import emplModel from './model/empl2Model';

// moment('2012 juillet', 'YYYY MMM', 'fr');
/* let element=moment().isoWeeks(23).format('YYYY-MM-DD')
console.log(element,'<-------element-------')

let F=moment('2018-06-04').weeks()
console.log(F,'<-------F-------')

//通过第几周获取该周的开始日期与结束日期
//获取2018年第12周的开始日期与结束日期-------只能当年-------------按一周5天算
let year=2018;
let week=23;
let element2=moment().isoWeeks(week).format('YYYY-MM-DD')
console.log(element2,'<-------element2-------')
let now = new Date(); //当前日期  
let nowDayOfWeek = now.getDay(); //今天本周的第几天  
let num=nowDayOfWeek-1
console.log(nowDayOfWeek,'<--------nowDayOfWeek----------') 
let startDate=moment(element2).subtract(num,'days').format('YYYY-MM-DD');
console.log(startDate,'<----------startDate--------')   //当年的某一周的周一的日期
let endDate=moment(startDate).add(4,'days').format('YYYY-MM-DD');
console.log(endDate,'<------------endDte========')   //当年的某一周的周五的日期

let userId='083542600432662018';

let  month2 = moment().format('MM');
let month=moment().subtract(1,'month').format('MM')
console.log(month,'<--------month') */


let s_2:any=['337','6433','76437','5621','6790','3227']


/* 
for (let index = 0; index < 50; index++) {
    let s_1='562'+index;
    console.log('11111111111---->',index)
   // console.log(s_1.includes('7'),'true-false')
    if(s_2.includes(s_1)){
        console.log('222222222222')
        console.log('包含执行下面的代码!!!!!!!!')
    } 
}
 */